# coding:utf-8
# 作者：理想国真恵玩
import numpy as np

# 转换类型
arr = np.arange(10).reshape([2, 5])
print(arr)

# 转换为float类型
arr1 = arr.astype(np.float)
print(arr1)

# 转换为字符串
arr2 = arr1.tobytes()
print(arr2)
